package com.itheima.demo02;

//Manager类, 子类, 让该类继承Person类.
public class Manager extends Person {
    //特有属性
    private int bonus;

    //构造方法
    public Manager() {
    }

    public Manager(String name, String id, int salary) {
        super(name, id, salary);
    }

    public Manager(String name, String id, int salary, int bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println("Manager working!");
    }
}
